<template>
	<view class="content">
		<view class="header">
			<view class="header_bg">
				<view class="add">
					<button type="default" @click="addchange()">新增子管理员</button>
				</view>

				<view class="adminlist" v-for="(item,index) in list" @click="todetails()">
					<view class="adminlist1">
						<text>{{item.title}}</text>
					</view>
					<view class="adminlist2">
						<text>联系方式：{{item.phone}}</text>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [{
						id: 0,
						title: '姓名',
						phone: '1888888888'
					},
					{
						id: 1,
						title: '姓名',
						phone: '1888888888'
					},
					{
						id: 2,
						title: '姓名',
						phone: '1888888888'
					}
				]

			}
		},
		methods: {
			todetails(){
				uni.navigateTo({
					url:'/pages/shop/mushop/update_admin'
				})
			},
			addchange(){
				uni.navigateTo({
					url:'/pages/shop/mushop/add_admin'
				})
			}
		}
	}
</script>

<style>
	.content {
		width: 750rpx;
		height: 1624rpx;
		background: #FAFAFA;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
	}

	.header {
		width: 750rpx;
		height: 240rpx;
		background: linear-gradient(180deg, #1789FF 0%, #93C3F9 100%);
		border-radius: 0rpx 0rpx 0rpx 0rpx;
	}

	.header_bg {
		padding-top: 32rpx;

	}

	.add {
		margin: auto;
	}

	.add button {
		width: 690rpx;
		height: 96rpx;
		background: #FFFFFF;
		border-radius: 4rpx 4rpx 4rpx 4rpx;
		font-family: PingFang SC, PingFang SC;
		font-weight: bold;
		font-size: 32rpx;
		color: #1889FF;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.adminlist {
		width: 690rpx;
		height: 116rpx;
		background: #FFFFFF;
		border-radius: 4rpx 4rpx 4rpx 4rpx;
		display: flex;
		align-items: center;
		margin: 32rpx auto 0;
	}
	.adminlist1{
		width: 30%;
		margin-left: 40rpx;
		font-family: PingFang SC, PingFang SC;
		font-weight: bold;
		font-size: 28rpx;
		color: #333333;
	}
	.adminlist2{
		width: 70%;
		font-family: PingFang SC, PingFang SC;
		font-weight: bold;
		font-size: 28rpx;
		color: #333333;
	}
</style>